import 'package:flutter_novel/config/use_channels.dart';

class InvokeManager {
  /// 统一处理调用原生方法,防止修改方法名

  static popPage() async {
    await UseChannel.baseChannel.invokeMethod('popFlutterPage');
  }

  static pushRecommendPage() async {
    await UseChannel.baseChannel.invokeMethod('pushRecommendPage');
  }

  static addGestureRecognizer() async {
    await UseChannel.baseChannel.invokeMethod('addGestureRecognizer');
  }

  static removeGestureRecognizer() async {
    await UseChannel.baseChannel.invokeMethod('removeGestureRecognizer');
  }
}
